package com.jisu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.Year;

@Data
@TableName("model")
public class Model {
    @TableId(type = IdType.AUTO)
    @TableField("model_id")
    private Integer modelId;

    @TableField("brand_id")
    private Integer brandId;

    @TableField("model_name")
    private String modelName;

    @TableField("model_version")
    private String modelVersion;

    private Year year;

    @TableField("model_type_id")
    private int modelTypeId;

    private Integer inventory;

    @TableField("dealer_id")
    private Integer dealerId;

    @TableField("pic_url")
    private String picUrl;

    private Integer sales;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;
}
